package com.atguigu.gulimall.ware.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: charls
 * @Description:TODO
 * @Date: 2023/04/09/ 21:33
 * @Version: 1.0
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {

    //两种写法、还可以给网关发送请求
    @RequestMapping("/product/skuinfo/info/{skuId}")
    //@RequiresPermissions("product:skuinfo:info")
    public R info(@PathVariable("skuId") Long skuId);
}
